package io.github.i678.bukkitantipmc.utils;

public class FilterUtils {

    public static boolean isSevere(String msg) {
        if(msg.contains("from pmc, can i get op") || msg.contains("from pmc can I have op") || msg.contains("from pmc, can i have op") || msg.contains("from planet minecraft, can i have op")) {
            return true;
        }
        return false;
    }

    public static boolean isNormal(String msg) {
        if(msg.contains("pmc op") || msg.contains("planet minecraft op") || msg.contains("pmc admin") || msg.contains("pmc operator") || msg.contains("planet minecraft operator") || msg.contains("pmc admin")) {
            return true;
        }
        return false;
    }

    public static boolean severeFilter() {
        return ConfigUtils.getConfig().getBoolean("filter.severeFilter");
    }

    public static boolean banOnSevere() {
        return ConfigUtils.getConfig().getBoolean("filter.banOnSevere");
    }

}